<?php


namespace app\webs\model;


use think\Model;

class NewsModel extends Model
{
    protected $name = 'news';


    public function getStatusAttr($val)
    {
        if ($val == 'opt0') {
            $val = '资讯';
        }elseif ($val == 'opt1'){
            $val = '动态';
        }
        return $val;

    }
}